
<div>
<?
	if(isset($system_message))echo $system_message;
	echo validation_errors() !==''?'<div class="alert-box">'.validation_errors().'</div>' : NULL;
?>	
<label class="label">Available Categories</label>
<hr class="clearfix">

<?if(!empty($categories)):?>
<div class="table-responsive">
<table class="table table-bordered">
		<tr>
			<th style="text-align:center;">Categories</th><th style="text-align:center;">Description</th>
		</tr>

		<?foreach($categories as $c):?>
			<tr>
				<td><?=$c->cic_name;?></td>
				<td><?=$c->cic_desc;?></td>
			</tr>
		<?endforeach;?>
			<tr>
				<td colspan="2"><a href="<?=site_url('custodian/add_category');?>" class="data-link">Add Category</a></td>
			</tr>

</table>
</div>
<?else:?>
<div class="alert">
	No Category has been set. <a href="<?=site_url('custodian/add_category');?>" class="btn btn-mini">Add Category</a>
</div>
<?endif;?>
</div>